//
//  StoreSearchListViewController.m
//  GLGW_Shoping
//
//  Created by yang on 2018/11/8.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "StoreSearchListViewController.h"
#import "StoreTopSelectView.h"
#import "SearchStoreTableViewCell.h"

@interface StoreSearchListViewController ()<UITableViewDelegate,UITableViewDataSource>

@end

@implementation StoreSearchListViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self createTopView];
    self.tableView.height = self.tableView.height- kHeightProportion_In_iPhoneTriploid(44) - kHeightProportion_In_iPhoneTriploid(35);
    self.tableView.y = kHeightProportion_In_iPhoneTriploid(35);
    self.tableView.delegate =self;
    self.tableView.dataSource = self;
    self.tableView.mj_footer.hidden = YES;
    self.tableView.mj_header.hidden = YES;
    self.tableView.tableHeaderView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, KScreenWidth, kHeightProportion_In_iPhoneTriploid(10))];
    self.tableView.rowHeight = kHeightProportion_In_iPhoneTriploid(126);
    [self.view addSubview:self.tableView];
}
-(void)createTopView{
    StoreTopSelectView * storeView = [[StoreTopSelectView alloc] initWithFrame:CGRectMake(0, 0, KScreenWidth, kHeightProportion_In_iPhoneTriploid(35)) inSuperView:self.view];
}

#pragma mark =================== UITableViewDelegate,UITableViewDataSource ===================
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 10;
}

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    SearchStoreTableViewCell * cell = [SearchStoreTableViewCell cellWithTableView:tableView];
    return cell;
}

@end
